﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using s2b.ControleDesenvolvimentoProjetos.Util.Auxiliar;

namespace s2b.ControleDesenvolvimentoProjetos.Paginas
{
    public partial class WFVisualizarCliente : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
     
       

        protected void gdvCliente_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "Delete":
                    Auxiliar.DeletarRegistro(e, gdvCliente, "ID_CLIENTE", "CLIENTE");
                    break;
                case "Edit":
                    Response.Redirect(String.Format("WFCliente.aspx?ID_Cliente={0}", Auxiliar.RetornaIdRegistro(e, gdvCliente, "ID_CLIENTE")), false);
                    break;
                case "View":


                    Response.Redirect(String.Format("WFVisualizarProjetosCliente.aspx?ID_Cliente={0}", Auxiliar.RetornaIdRegistro(e, gdvCliente, "ID_CLIENTE")));


                    
                    break;
                default:
                    break;
            }
          
            
        }
    }
}